package com.young.springdemo.service.bridgeAndAdapter;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class testBr {
//    @PostConstruct
    public void test() throws Exception{
        Class<?> aClass = Class.forName("com.young.springdemo.service.bridgeAndAdapter.Adapter");
        File file = (File) aClass.newInstance();
        Class<?> aClass1 = Class.forName("com.young.springdemo.service.bridgeAndAdapter.ColumnReportImpl");
        Report report = (Report) aClass1.newInstance();
        report.setFile(file);
        report.parse("哈哈哈");
    }

}
